	<script type="text/javascript">
	//<![CDATA[
	
	function initialize(id) {
		console.log('id'+id);
	    var myLatlng = new google.maps.LatLng(41.398758,2.143336);
	    var myOptions = {
	   		 navigationControl: false,
	   		 mapTypeControl: false,
	    	 scaleControl: false,
	    	 draggable: false,
	    	 scrollwheel: false,

	      zoom: 17,
	      center: myLatlng,
	      mapTypeId: google.maps.MapTypeId.ROADMAP
	    }
	    var map = new google.maps.Map(document.getElementById("mapa_"+id), myOptions);
	    console.log('map'+map);
	    /*var marker = new google.maps.Marker({
	        position: myLatlng, 
	        map: map,
	        title:"Pans & Company, pasión por el bocadillo"
	    });*/   
	  }

	$(document).ready(function () {
	// mostrar y esconder enlace volver arriba
		$('#gototop').fadeOut("fast");
		$('#gototop').css({'position' : 'fixed', 'left' : '0', 'right' : '0', 'bottom' : '0'});

		$(window).scroll(function () {
			if ($(window).scrollTop() >= 500) {
				$('#gototop').fadeIn("slow");
			} else {
				$('#gototop').fadeOut("slow");
			}
		});

		/**
		 * Most jQuery.localScroll's settings, actually belong to jQuery.ScrollTo, check it's demo for an example of each option.
		 * @see http://flesler.demos.com/jquery/scrollTo/
		 * You can use EVERY single setting of jQuery.ScrollTo, in the settings hash you send to jQuery.LocalScroll.
		 */
		
		// The default axis is 'y', but in this demo, I want to scroll both
		// You can modify any default like this
		$.localScroll.defaults.axis = 'xy';
		
		// Scroll initially if there's a hash (#something) in the url 
		$.localScroll.hash({
			target: '#contentscroll', // Could be a selector or a jQuery object too.
			queue:true,
			duration:1500
		});
	
		/**
		 * NOTE: I use $.localScroll instead of $('#navigation').localScroll() so I
		 * also affect the >> and << links. I want every link in the page to scroll.
		 */
		$.localScroll({
			target: '#contentscroll', // could be a selector or a jQuery object too.
			queue:true,
			duration:1000,
			hash:true,
			onBefore:function( e, anchor, $target ){
				// The 'this' is the settings object, can be modified
			},
			onAfter:function( anchor, settings ){
				// The 'this' contains the scrolled element (#content)
			}
		});
		


		// animacion de la tarjeta
		$("#volver").hide();
		$("#back").hide();
		$("#info").click(function(){
		$("#info").hide();	
			$("#tarjeta").flip({
				direction:'lr',
				onEnd: function(){		
					$("#tarjeta").css('background-color','transparent');
					$("#front").hide();
					$("#back").show();
					$("#volver").show();				
				}
			});
		});
		$("#volver").click(function(){	
		$("#volver").hide();
			$("#tarjeta").flip({
				direction:'rl',
				onEnd: function(){				
					$("#tarjeta").css('background-color','transparent');
					$("#front").show();
					$("#back").hide();
					$("#info").show();
				}
			});
		});
		// cerrar panel de sharing
		$(".caja").mouseleave(function() {
			$("#st-oferta").fadeOut("slow");
		});
		$("#tarjeta").mouseleave(function() {
			$("#st-tarjeta").fadeOut("slow");
		});

		$(".addthis_toolbox a").attr("addthis:url","http://runroom.qporama.es/distribution/?coupon_id=283");
		$(".addthis_toolbox a").attr("addthis:title","2x1 Pans&Company. Llévate tu segundo bocadillo gratis.");

		// Asignamos url de sharing a la tarjeta
		$("#tarjeta .addthis_toolbox a").attr("addthis:url","http://runroom.qporama.es/loyaltycard?card_id=1");
		$("#tarjeta .addthis_toolbox a").attr("addthis:title","Pans & Fans");

	    window.addthis.ost = 0;

	});
	
	//]]>
</script>